package mspbots.smileback.common;

/**
 * mspbots.data.autotask.utils.RedisKeys
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/7/15
 */
public class RedisKeys {
    /**
     * Redis default base key
     */
    private final static String REDIS_KEY_PREFIX = "data:smile-back:sync:";

    /**
     * Scheduled anchor lock key
     */
    public final static String TASK_LOCK_ANCHOR_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:lock:";

    /**
     * Scheduled anchor lock key
     */
    public final static String TENANT_RUNNING_LOCK_ANCHOR_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:running:";
    /**
     * Scheduled anchor lock key
     */
    public final static String ON_OFF_TENANT_TASK_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:on-off";

    /**
     * tenant oauth key
     */
    public final static String OAUTH_TENANT_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "tenant:oauth:";

    /**
     * tenant access-token key
     */
    public final static String ACCESS_TOKEN_TENANT_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "tenant:access-token:";

    public final static String TENANT_ANCHOR_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "anchor:time:";

    public final static String REVIEWS_ANCHOR_REDIS_KEY_PREFIX = TENANT_ANCHOR_REDIS_KEY_PREFIX + "reviews:";

}
